-module(test_aleph_config).
-include_lib("eunit/include/eunit.hrl").
-include("aleph_naming_macros.hrl"). 
-include("aleph_service_macros.hrl").
-export([label_process_test/0,process_spec/0,start_link/0,set_up/0]).
-import(aleph_config,[label_process/1]).
-define(TEST_PROCESS,?name(test_process)).
%%%%%%%%%%%%%static functions
process_spec()->
     {?TEST_PROCESS,{aleph_config,start_link,[]}, worker, [ch3]}.
%%%%%%%%%%%%%behaviour implementations
start_link() ->
   Name=?TEST_PROCESS,
   io:format("Name~p~n",[Name]),
   label_process(
                  gen_server:start_link({local,Name},test_aleph_config, [], [])).

-define(SERVICE_NAME,?TEST_PROCESS).
?define_cast(label_process_test).
label_process_test(State)->
    ?match(true,self()==whereis(?TEST_PROCESS)),
    ?match(true,whereis(test_app_test_process)==whereis(?TEST_PROCESS)).

set_up()->
    App=aleph_server:start_link(test_app),
    App([start_service,test_aleph_config]).
 

